Optimal. Leaf size=82 \[ -\frac {a^3 x^n}{b^4 n}+\frac {a^2 x^{2 n}}{2 b^3 n}-\frac {a x^{3 n}}{3 b^2 n}+\frac {x^{4 n}}{4 b n}+\frac {a^4 \log \left (a+b x^n\right )}{b^5 n} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.03, antiderivative size = 82, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 2, integrand size = 17, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.118, Rules used = {272, 45}
\begin {gather*} \frac {a^4 \log \left (a+b x^n\right )}{b^5 n}-\frac {a^3 x^n}{b^4 n}+\frac {a^2 x^{2 n}}{2 b^3 n}-\frac {a x^{3 n}}{3 b^2 n}+\frac {x^{4 n}}{4 b n} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 45
Rule 272
Rubi steps
\begin {align*} \int \frac {x^{-1+5 n}}{a+b x^n} \, dx &=\frac {\text {Subst}\left (\int \frac {x^4}{a+b x} \, dx,x,x^n\right )}{n}\\ &=\frac {\text {Subst}\left (\int \left (-\frac {a^3}{b^4}+\frac {a^2 x}{b^3}-\frac {a x^2}{b^2}+\frac {x^3}{b}+\frac {a^4}{b^4 (a+b x)}\right ) \, dx,x,x^n\right )}{n}\\ &=-\frac {a^3 x^n}{b^4 n}+\frac {a^2 x^{2 n}}{2 b^3 n}-\frac {a x^{3 n}}{3 b^2 n}+\frac {x^{4 n}}{4 b n}+\frac {a^4 \log \left (a+b x^n\right )}{b^5 n}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.04, size = 65, normalized size = 0.79 \begin {gather*} \frac {b x^n \left (-12 a^3+6 a^2 b x^n-4 a b^2 x^{2 n}+3 b^3 x^{3 n}\right )+12 a^4 \log \left (a+b x^n\right )}{12 b^5 n} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.25, size = 79, normalized size = 0.96
method | result | size |
risch | \(\frac {x^{4 n}}{4 b n}-\frac {a \,x^{3 n}}{3 b^{2} n}+\frac {a^{2} x^{2 n}}{2 b^{3} n}-\frac {a^{3} x^{n}}{b^{4} n}+\frac {a^{4} \ln \left (x^{n}+\frac {a}{b}\right )}{b^{5} n}\) | \(79\) |
norman | \(\frac {{\mathrm e}^{4 n \ln \left (x \right )}}{4 b n}-\frac {a \,{\mathrm e}^{3 n \ln \left (x \right )}}{3 b^{2} n}+\frac {a^{2} {\mathrm e}^{2 n \ln \left (x \right )}}{2 b^{3} n}-\frac {a^{3} {\mathrm e}^{n \ln \left (x \right )}}{b^{4} n}+\frac {a^{4} \ln \left (a +b \,{\mathrm e}^{n \ln \left (x \right )}\right )}{b^{5} n}\) | \(87\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.30, size = 72, normalized size = 0.88 \begin {gather*} \frac {a^{4} \log \left (\frac {b x^{n} + a}{b}\right )}{b^{5} n} + \frac {3 \, b^{3} x^{4 \, n} - 4 \, a b^{2} x^{3 \, n} + 6 \, a^{2} b x^{2 \, n} - 12 \, a^{3} x^{n}}{12 \, b^{4} n} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.41, size = 65, normalized size = 0.79 \begin {gather*} \frac {3 \, b^{4} x^{4 \, n} - 4 \, a b^{3} x^{3 \, n} + 6 \, a^{2} b^{2} x^{2 \, n} - 12 \, a^{3} b x^{n} + 12 \, a^{4} \log \left (b x^{n} + a\right )}{12 \, b^{5} n} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 14.61, size = 87, normalized size = 1.06 \begin {gather*} \begin {cases} \frac {\log {\left (x \right )}}{a} & \text {for}\: b = 0 \wedge n = 0 \\\frac {\log {\left (x \right )}}{a + b} & \text {for}\: n = 0 \\\frac {x^{5 n}}{5 a n} & \text {for}\: b = 0 \\\frac {a^{4} \log {\left (\frac {a}{b} + x^{n} \right )}}{b^{5} n} - \frac {a^{3} x^{n}}{b^{4} n} + \frac {a^{2} x^{2 n}}{2 b^{3} n} - \frac {a x^{3 n}}{3 b^{2} n} + \frac {x^{4 n}}{4 b n} & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {x^{5\,n-1}}{a+b\,x^n} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________